﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XuanXiang.Infrastructure.Attr;
using XuanXiang.Infrastructure.Dto.Request.Login;
using XuanXiang.Infrastructure.Dto.Request.System;
using XuanXiang.Infrastructure.Dto.Response;
using XuanXiang.Infrastructure.Dto.Response.System;
using XuanXiang.Infrastructure.EFCore.MySql;

namespace XuanXiang.Service.Interface
{
    [Provider_]
    public interface I_Login_Service
    {
        /// <summary>
        /// 初始化用户密码
        /// </summary>
        /// <returns></returns>
        Task<Api_Result_Dto> Init_User();

        /// <summary>
        /// 管理员登录
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<Api_Result_Dto> Logins(Infrastructure.Dto.Request.Login.Login_dto dto);

        /// <summary>
        /// 检查登录
        /// </summary>
        /// <param name="code"></param>
        /// <returns></returns>
        Users_Dto Check_Login(string code,string account);

       
    }
}
